<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;


class Types extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = array(
            array('name'=>'前端', 'keywords'=>'前端', 'description'=>'前端', 'parent_id'=>0, 'path'=>0, 'weight'=>0, 'is_show'=>1),
            array('name'=>'后端', 'keywords'=>'后端', 'description'=>'后端', 'parent_id'=>0, 'path'=>0, 'weight'=>0, 'is_show'=>1),
            array('name'=>'数据库', 'keywords'=>'数据库', 'description'=>'数据库', 'parent_id'=>0, 'path'=>0, 'weight'=>0, 'is_show'=>1),
            array('name'=>'系统环境', 'keywords'=>'系统环境', 'description'=>'系统环境', 'parent_id'=>0, 'path'=>0, 'weight'=>0, 'is_show'=>1),

            array('name'=>'WEB基础', 'keywords'=>'WEB基础', 'description'=>'WEB基础', 'parent_id'=>1, 'path'=>'0,1', 'weight'=>0, 'is_show'=>1),
            array('name'=>'VUE', 'keywords'=>'VUE', 'description'=>'VUE', 'parent_id'=>1, 'path'=>'0,1', 'weight'=>0, 'is_show'=>1),
            array('name'=>'Flutter', 'keywords'=>'Flutter', 'description'=>'Flutter', 'parent_id'=>1, 'path'=>'0,1', 'weight'=>0, 'is_show'=>1),

            array('name'=>'PHP', 'keywords'=>'PHP', 'description'=>'PHP', 'parent_id'=>2, 'path'=>'0,2', 'weight'=>0, 'is_show'=>1),
            array('name'=>'Go', 'keywords'=>'Go', 'description'=>'Go', 'parent_id'=>2, 'path'=>'0,2', 'weight'=>0, 'is_show'=>1),
            array('name'=>'Dart', 'keywords'=>'Dart', 'description'=>'Dart', 'parent_id'=>2, 'path'=>'0,2', 'weight'=>0, 'is_show'=>1),

            array('name'=>'Mysql', 'keywords'=>'Mysql', 'description'=>'Mysql', 'parent_id'=>3, 'path'=>'0,3', 'weight'=>0, 'is_show'=>1),
            array('name'=>'Redis', 'keywords'=>'Redis', 'description'=>'Redis', 'parent_id'=>3, 'path'=>'0,3', 'weight'=>0, 'is_show'=>1),

            array('name'=>'Windows', 'keywords'=>'Windows', 'description'=>'Windows', 'parent_id'=>4, 'path'=>'0,4', 'weight'=>0, 'is_show'=>1),
            array('name'=>'Linux', 'keywords'=>'Linux', 'description'=>'Linux', 'parent_id'=>4, 'path'=>'0,4', 'weight'=>0, 'is_show'=>1),
            array('name'=>'Docker', 'keywords'=>'Docker', 'description'=>'Docker', 'parent_id'=>4, 'path'=>'0,4', 'weight'=>0, 'is_show'=>1),
            array('name'=>'Git', 'keywords'=>'Git', 'description'=>'Git', 'parent_id'=>4, 'path'=>'0,4', 'weight'=>0, 'is_show'=>1),
            array('name'=>'Composer', 'keywords'=>'Composer', 'description'=>'Composer', 'parent_id'=>4, 'path'=>'0,4', 'weight'=>0, 'is_show'=>1),
        );
        DB::table('types')->insert($data);
    }
}
